home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / program / swags_z.zip / TIMING.SWG / 0023_Clock Ticks.pas < prev    next >
Pascal/Delphi Source File  |  1994-08-25  |  812b  |  23 lines

  1. {
  2. PN>Hi, Steve. I know this has been asked before, but am thinking
  3.   >of using TicksSinceMidnight which is at memory location $0040:006C
  4.   >as you say. Ny question is to what kind of type (size) variable should
  5.   >I assign this to, and how many bytes are reserved for this number?
  6.   >$0040:006C ..  $0040:006D  ????
  7.   >word? longint? integer?
  8.                                            .
  9.   60 * 60 * 24 = 86400 seconds per day.   . .  a longint is needed.
  10. }
  11.   var
  12.     TickSinceMidnight : longint ABSOLUTE $0040:$006c;
  13. {
  14.   BTW, that second $ is important :)
  15.  
  16.  
  17.   >I appreciate your help. I'm going to try to get a 10ths seconds
  18.   >counter going by test-running the number of ticks in a second. Or words
  19.   >to that effect.
  20.  
  21.   There are approximately 18.2 ticks per second (thanks, Spock :)
  22. }
  23.